﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using CUWo.Common;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace CUWo.App.CustomControl
{
    public partial class HeaderSearchControl : UserControl
    {
        public HeaderSearchControl()
        {
            InitializeComponent();
        }

        private void imageHome_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            //回到首页
        }

        private void imageSearch_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            string searchKeyword = this.txtSearch.Text.Trim();
            if (string.IsNullOrWhiteSpace(searchKeyword))
            {
                return;
            }

            LogHelper.LogInfo(searchKeyword);
            MessageToastManager.Show(searchKeyword);
        }



        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {

        }

        


    }
}
